package com.youkeyi.ddy.cloud.common.api.basic.crm.laboratory;

import com.youkeyi.ddy.cloud.common.api.basic.crm.laboratory.dto.CrmLaboratoryListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.crm.laboratory.param.CrmLaboratoryCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.laboratory.param.CrmLaboratoryDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.laboratory.param.CrmLaboratoryQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.laboratory.param.CrmLaboratoryUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * CrmLaboratoryCloudService
 *
 * @Author liuxiawang
 * @Date 2024/3/1 10:54 AM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-CRM", fallback = CrmLaboratoryCloudServiceFallback.class)
@RequestMapping("/crm/laboratory")
public interface CrmLaboratoryCloudService {

    /**
     * 查询医生列表.
     *
     * @param param the param
     * @return the laboratory input config list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract CrmLaboratoryListCloudDto query(@RequestBody CrmLaboratoryQueryCloudParam param);

    /**
     * 新增医生.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody CrmLaboratoryCreateCloudParam param);

    /**
     * 编辑医生.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody CrmLaboratoryUpdateCloudParam param);

    /**
     * 删除医生.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody CrmLaboratoryDeleteCloudParam param);
    
}
